# -*- coding: UTF-8 -*-
"""
@Time:2022/4/29 20:53
@File:upimage.py
@Author:常雷
@Software:PyCharm
"""
import datetime
from rest_framework.response import Response
from django.shortcuts import render, HttpResponse
from rest_framework import serializers
from rest_framework.views import APIView
from rest_framework.generics import CreateAPIView, ListAPIView, RetrieveAPIView
from palyWordDackend import models
from django.forms import model_to_dict
from rest_framework import status
from django.db.models import F
import requests

class UpFile(APIView):
    def post(self, request, *args, **kwargs):
        """
        用户上传图片
        :param request:
        :param args:
        :param kwargs:
        :return:
        """
        print(request)
        print(request.data)
        # print(request.filePath)
        return Response({'code':200})